load(
    "@nazel//:nazel_build.bzl",
    "nazel_cc_library",
    "nazel_cc_test",
)

package(default_visibility = ["//visibility:public"])

nazel_cc_library(
    name = "strat_util",
    srcs = glob(
        [
            "*.h",
            "*.cc",
        ],
        exclude = [
            "*unittest.cc",
        ],
    ),
    linkopts = [
        "-lssl",
        "-lcrypto",
    ],
    deps = [
        "//cc/coin2/base:log",
        "@apiset//coin2:coin2_service_cpp",
        "@apiset//coin2:coin2_cpp",
    ],
)

nazel_cc_test(
    name = "moving_window_top_percentile_unittest",
    srcs = ["moving_window_top_percentile_unittest.cc"],
    deps = [":strat_util"],
)

nazel_cc_test(
    name = "moving_window_unittest",
    srcs = ["moving_window_unittest.cc"],
    deps = [":strat_util"],
)

nazel_cc_test(
    name = "moving_ohlc_unittest",
    srcs = ["moving_ohlc_unittest.cc"],
    deps = [":strat_util"],
)

nazel_cc_test(
    name = "top_percentile_unittest",
    srcs = ["top_percentile_unittest.cc"],
    deps = [":strat_util"],
)
